/* Define to 1 if you have the `sleep' function. */
#undef HAVE_SLEEP
+/* Define to 1 if you have the `uname' function. */
+#undef HAVE_UNAME
+
/* Define if we have va_copy */
#undef HAVE_VA_COPY
# AC_CHECK_FUNCS([atexit floor localtime_r memmove memset pow select sqrt strchr strcspn strdup strerror strncasecmp strrchr strspn strstr strtol strtoul])
-for ac_func in nanosleep sleep
+
+for ac_func in nanosleep sleep uname
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
# AC_FUNC_STRTOD
# AC_FUNC_VPRINTF
# AC_CHECK_FUNCS([atexit floor localtime_r memmove memset pow select sqrt strchr strcspn strdup strerror strncasecmp strrchr strspn strstr strtol strtoul])
-AC_CHECK_FUNCS([nanosleep sleep])
+AC_CHECK_FUNCS([nanosleep sleep uname])
#
# Checks for how the system handles va_list
-; $Id: setup.iss,v 1.7 2009/09/08 16:06:32 robertl Exp $\r
+; $Id: setup.iss,v 1.8 2009/09/14 14:20:39 robertl Exp $\r
;\r
; NOTE: setup.iss is generated from setup.iss.in via autoconf.\r
; The generated setup.iss is checked in to help keep the version numbers\r
// -*- C++ -*-
-// $Id: upgrade.cpp,v 1.16 2009/09/07 00:55:07 robertl Exp $
+// $Id: upgrade.cpp,v 1.17 2009/09/14 14:20:39 robertl Exp $
/*
Copyright (C) 2009 Robert Lipe, robertlipe@gpsbabel.org
#include "upgrade.h"
+#include "../config.h"
#include "../gbversion.h"
+#if HAVE_UNAME
+#include <sys/utsname.h>
+#endif // HAVE_UNAME
+
#include <QHttp>
#include <QMessageBox>
#include <QDesktopServices>
args += "¤t_gui_version=" VERSION;
args += "&installation=" + installationUuid;
args += "&os=" + getOsName();
+#if HAVE_UNAME
+ struct utsname utsname;
+ if (0 == uname(&utsname)) {
+ args += "&cpu=" + QString(utsname.machine);
+ }
+#endif
args += "&os_ver=" + getOsVersion();
args += "&beta_ok=1"; // Eventually to come from prefs.
args += "&lang=" + QLocale::languageToString(locale.language());